package com.baidu.pro.bean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Cart {
	
	private String id;
	
	private double totalprice;

	private List<CartItem> items =new ArrayList<CartItem>();
	
	private Map<String,CartItem> mitems = new HashMap<String, CartItem>();
	
	

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public double getTotalprice() {
		return totalprice;
	}

	public void setTotalprice(double totalprice) {
		this.totalprice = totalprice;
	}

	public Cart(List<CartItem> items) {
		super();
		this.items = items;
	}

	public List<CartItem> getItems() {
		return items;
	}

	public void setItems(List<CartItem> items) {
		this.items = items;
	}

	public Map<String, CartItem> getMitems() {
		return mitems;
	}

	public void setMitems(Map<String, CartItem> mitems) {
		this.mitems = mitems;
	}

	public Cart(Map<String, CartItem> mitems) {
		super();
		this.mitems = mitems;
	}

	public Cart(List<CartItem> items, Map<String, CartItem> mitems) {
		super();
		this.items = items;
		this.mitems = mitems;
	}

	public Cart(String id, double totalprice, List<CartItem> items, Map<String, CartItem> mitems) {
		super();
		this.id = id;
		this.totalprice = totalprice;
		this.items = items;
		this.mitems = mitems;
	}
	
	
}
